import service from "@/utils/request.js"
/**
 * 创建菜单
 */
export function menuCreate(data = {}){
    return service.request({
        url: "api/v1/menu/create",
        method: "post",
        data
    })
}

/**
 * 列表菜单
 */
export function menuListsTree(data = {}){
    return service.request({
        url: "api/v1/menu/listsTree",
        method: "post",
        data
    })
}

/**
 * 删除菜单
 */
export function menuremove(data = {}){
    return service.request({
        url: "api/v1/menu/remove",
        method: "post",
        data
    })
}

/**
 * 编辑菜单
 */
export function menuupdate(data = {}){
    return service.request({
        url: "api/v1/menu/update",
        method: "post",
        data
    })
}

/**
 * 添加按钮权限
 */
export function permissionSave(data = {}){
    return service.request({
        url: "api/v1/permission/save",
        method: "post",
        data
    })
}

/**
 * 编辑按钮权限
 */
export function buttonEdit(data = {}){
    return service.request({
        url: "api/v1/buttonEdit",
        method: "post",
        data
    })
}


/**
 * 按钮权限列表
 */
export function buttonList(data = {}){
    return service.request({
        url: "api/v1/buttonList",
        method: "post",
        data
    })
}


/**
 * 删除按钮
 */
export function buttonDel(data = {}){
    return service.request({
        url: "api/v1/buttonDel",
        method: "post",
        data
    })
}




// /**
//  * 列表菜单
//  */
// export function saveButtonPower(data = {}){
//     return service.request({
//         url: "api/v1/saveButtonPower",
//         method: "post",
//         data
//     })
// }







